Live Agent Chat
This is a list of classes related to Live Agent Chat. The entry point into this feature is through the SCSChat class. Refer to that class to get started.
- 
                  
                  
The
SCSChatclass is the main interface to the Live Agent Chat SDK. This object manages the flow of Chat sessions throughout the lifetime of the app.To get an instance of this class, use the
SCServiceCloud.chatproperty on+[SCServiceCloud sharedInstance].SCSChatconforms to a multicast delegate model for messaging. Any class which implements theSCSChatDelegateprotocol can be added to a list of delegates to receive messages asynchronously.For UI-related chat features, see
SCSChatInterface.See moreSee
SCSChatInterfaceDeclaration
Objective-C
@interface SCSChat : NSObjectSwift
class SCSChat : NSObject - 
                  
                  
SCSChatAvailabilityHandler block definition
Declaration
Objective-C
typedef void (^SCSChatAvailabilityHandler)(NSError *__strong, BOOL)Swift
typealias SCSChatAvailabilityHandler = (Error?, Bool) -> VoidParameters
errorNSErrorinstance describing the error. Error codes can be referenced fromSCSChatErrorCode.availableBOOLrepresenting the availability of an agent to accept a chat session. - 
                  
                  
SCSChatCompletionHandler block definition
Declaration
Objective-C
typedef void (^SCSChatCompletionHandler)(NSError *__strong, SCSChat *__weak)Swift
typealias SCSChatCompletionHandler = (Error?, SCSChat?) -> VoidParameters
errorNSErrorinstance describing the error. Error codes can be referenced fromSCSChatErrorCode.scscThe instance of
SCSChatthe block is acting on. 
- 
                  
                  
A
See moreSCSChatConfigurationobject contains configuration information for a Live Agent Chat session.Declaration
Objective-C
@interface SCSChatConfiguration : NSObject <NSCopying>Swift
class SCSChatConfiguration : NSObject, NSCopying - 
                  
                  
Describes how a chat session is presented.
See moreDeclaration
Objective-C
enum SCSChatPresentationStyle {} 
- 
                  
                  
Reasons why a Live Agent Session may have ended.
See moreDeclaration
Objective-C
enum SCSChatEndReason {}Swift
enum SCSChatEndReason : Int 
- 
                  
                  
Live Agent Chat ErrorCode definitions.
Errors fall into one of several groups (or series) of errors.
If there is an error thrown by a library dependency it will be included as metadata in the userInfo of the error which is returned to the application code.
See moreDeclaration
Objective-C
enum SCSChatErrorCode {}Swift
enum SCSChatErrorCode : Int 
- 
                  
                  
Full list of Session states the Live Agent Chat framework can exhibit.
See moreDeclaration
Objective-C
enum SCSChatSessionState {} 
- 
                  
                  
A
SCSPrechatEntityspecifies a salesforce entity related to this chat session that will be found or created on session start.This object must be added to your chat configuration using
See moreSCSChatConfiguration.prechatEntities.Declaration
Objective-C
@interface SCSPrechatEntity : NSObjectSwift
class SCSPrechatEntity : NSObject 
- 
                  
                  
A
SCSPrechatEntityFieldspecifies a field of a salesforce object and its relation to a specific pre-chat object defined on session creation.This object must be added to a pre-chat entity using
See moreSCSPrechatEntity.entityFieldsMaps.Declaration
Objective-C
@interface SCSPrechatEntityField : NSObjectSwift
class SCSPrechatEntityField : NSObject 
- 
                  
                  
A
SCSPrechatObjectspecifies a pre-chat field that you can send directly to the agent. This object contains alabeland avalue.This object does not prompt the user for information. To create a field that the user can fill in, refer to
SCSPrechatTextInputObject.This object must be added to your chat configuration using
See moreSCSChatConfiguration.prechatFields.Declaration
Objective-C
@interface SCSPrechatObject : NSObject <NSCopying>Swift
class SCSPrechatObject : NSObject, NSCopying 
- 
                  
                  
An
SCSPrechatPickerObjectspecifies a pre-chat picker field that is displayed before a chat session is initiated.Use the
SCSPrechatPickerObject.requiredproperty to specify whether this field must have an option selected before initiating a session.To send data directly to the agent without user input, see
SCSPrechatObject.This object must be added to your chat configuration using
See moreSCSChatConfiguration.prechatFields.Declaration
Objective-C
@interface SCSPrechatPickerObject : SCSPrechatObjectSwift
class SCSPrechatPickerObject : SCSPrechatObject 
- 
                  
                  
An
SCSPrechatPickerOptionspecifies an option inside a pre-chat picker field that is displayed before a chat session is initiated.This object must be added to the options array on an
See moreSCSPrechatPickerObject.Declaration
Objective-C
@interface SCSPrechatPickerOption : NSObjectSwift
class SCSPrechatPickerOption : NSObject 
- 
                  
                  
An
SCSPrechatTextInputObjectspecifies a pre-chat text input field that is displayed before a chat session is initiated.Use the
SCSPrechatTextInputObject.requiredproperty to specify whether this field must be filled in before initiating a session.To send data directly to the agent without user input, see
SCSPrechatObject.This object must be added to your chat configuration using
See moreSCSChatConfiguration.prechatFields.Declaration
Objective-C
@interface SCSPrechatTextInputObject : SCSPrechatObjectSwift
class SCSPrechatTextInputObject : SCSPrechatObject 
            Install in Dash
          
      Live Agent Chat  Reference